package net.zjitc.service;

import net.zjitc.dao.CategoryDao;
import net.zjitc.domain.Category;
import net.zjitc.domain.User;

import java.sql.SQLException;
import java.util.List;

/**
 * 2 * @Author: 洪瑶
 * 3 * @Date: 2018/10/29 18:34
 * 4
 */
public interface CategoryService {
    List<Category> findAll() throws SQLException;
    Category findBy(int  id) throws SQLException;
    boolean update(Category category, String id) throws SQLException;
    void delete(int id) throws SQLException;
}
